
import fetch from '../../utils/http/fetch.js'
import consts from '../../utils/http/consts.js'
// 业务授权
const ROOT = './cs/ba';

export default {  
  authList(data, suc, err) {
    return fetch(data, suc, err, consts.HttpMethod.POST, `${ROOT}/getBuAuthCodeList`); // 业务授权按钮列表接口
  },
  allBusiness(data, suc, err) {
    return fetch(data, suc, err, consts.HttpMethod.GET, `${ROOT}/businessAllList`); // 业务系统接口
  },
  update(data, suc, err) {
    return fetch(data, suc, err, consts.HttpMethod.POST, `${ROOT}/addAuthUserCode`); // 业务系统保存权限按钮接口
  },
  log(data, suc, err) {
    return fetch(data, suc, err, consts.HttpMethod.POST, `${ROOT}/listPage`); // 业务系统授权操作记录/cs/ba/listPage
  }
}
